package org.mall.modules.pojo.shop;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.jeecgframework.poi.excel.annotation.Excel;
import org.springframework.format.annotation.DateTimeFormat;

import javax.validation.constraints.Min;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;

/**
 * @Description: 商品条目管理
 * @Author: jeecg-boot
 * @Date:   2019-11-14
 * @Version: V1.0
 */
@Data
public class ShopCategoryVo {
    /**id*/
    @Size(min = 1,max = 32,message = "条目ID长度不合法")
    private String categoryId;
    /**分类名称*/
    @NotNull(message = "条目名称不能为空")
    @Size(min = 2,max = 40,message = "条目名称不合法")
    private String categoryName;
    /**排序值(字段越大越靠前)*/
    @Min(value = 1,message = "排序值不能小于1")
    private Integer categoryRank;
    /**创建时间*/
    @Excel(name = "创建时间", width = 20, format = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "创建时间")
    private java.util.Date createTime;
    /**创建者id*/
    private String createUser;
    /**删除标识字段(0-未删除 1-已删除)*/
    @Excel(name = "删除标识字段(0-未删除 1-已删除)", width = 15)
    @ApiModelProperty(value = "删除标识字段(0-未删除 1-已删除)")
    private Integer isDeleted;
    /**父分类id*/
    @Excel(name = "父分类id", width = 15)
    @ApiModelProperty(value = "父分类id")
    private Integer parentId;
    /**店铺id*/
    @Excel(name = "店铺id", width = 15)
    @ApiModelProperty(value = "店铺id")
    @NotNull(message = "商铺ID不能为空")
    @Size(min = 1,max = 32,message = "商铺ID不合法")
    private String shopId;
    /**修改时间*/
    @Excel(name = "修改时间", width = 20, format = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "修改时间")
    private java.util.Date updateTime;
    /**修改者id*/
    @Excel(name = "修改者id", width = 15)
    @ApiModelProperty(value = "修改者id")
    private String updateUser;
    /**商铺名称*/
    private String shopName;
}
